package com.room.search.service.dto.baidu;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * By   : ghd.bright
 * Time : 2022/3/23
 * Description: 百度搜索周边配套的返回结果data
 */
public class BaiduAroundResultDTO implements Serializable {

    private String uid;
    private String name;

    private Location location;

    private String address;

    private String province;

    private String city;

    private String area;

    private String telephone;

    private Integer detail;

    @JsonProperty("street_id")
    private String streetId;

    public String getStreetId() {
        return streetId;
    }

    public void setStreetId(String streetId) {
        this.streetId = streetId;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Location getLocation() {
        return location;
    }

    public void setLocation(Location location) {
        this.location = location;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public Integer getDetail() {
        return detail;
    }

    public void setDetail(Integer detail) {
        this.detail = detail;
    }
    @Override
    public String toString() {
        return "BaiduAroundResultDTO{" +
            "name='" + name + '\'' +
            ", location=" + location +
            ", address='" + address + '\'' +
            ", province='" + province + '\'' +
            ", city='" + city + '\'' +
            ", area='" + area + '\'' +
            ", telephone='" + telephone + '\'' +
            ", detail=" + detail +
            '}';
    }

    public static class Location implements Serializable{

        private String lng;
        private String lat;

        public String getLng() {
            return lng;
        }

        public void setLng(String lng) {
            this.lng = lng;
        }

        public String getLat() {
            return lat;
        }

        public void setLat(String lat) {
            this.lat = lat;
        }

        @Override
        public String toString() {
            return "Location{" +
                "lng='" + lng + '\'' +
                ", lat='" + lat + '\'' +
                '}';
        }
    }
}

